import { type App } from "vue"
import { MylocalStorage } from '@/config/storage/MylocalStorage'; // 确保路径正确  
 
// 添加全局属性插件
export const addGlobalPropertiesPlugin = {
  // 参数 会自动接收到安装本插件的应用实例
  install(app: App) {
    // 注册想在全局使用的方法和变量
    app.config.globalProperties.$addValue = (value: number) => {
      return value + 857
    }
    app.config.globalProperties.$globaMylocalStorage = MylocalStorage;
  }
}